#!/bin/bash

echo "=============Physical disks placement (All Devices)=============="
echo ""

# 获取所有设备（不限制为NAA）
esxcli storage core device list | awk '/^[^ ]/ {print $1}' | while read device; do
    echo "$device"
    esxcli storage core device physical get -d "$device" 2>/dev/null || echo "No physical information available"
    echo "===================================================="
    sleep 1
done